## Managed by Salt
##
## Cluster-wide gres.conf file

{% for node, reses in gres|dictsort -%}
{% for res in reses -%}
NodeName={{node}} Name={{res['Name']-}}
{% if res['Type'] is defined -%}
{{' '}}Type={{res['Type']-}}
{% endif -%}
{% if res['File'] is defined -%}
{{' '}}File={{res['File']-}}
{% endif -%}
{% if res['CPUs'] is defined -%}
{{' '}}CPUs={{res['CPUs']-}}
{% endif -%}
{% if res['Count'] is defined -%}
{{' '}}Count={{res['Count']-}}
{% endif -%}
{% if res['Flags'] is defined -%}
{{' '}}Flags={{res['Flags']-}}
{% endif %}
{% endfor -%}    {# Looping over all reses for a node set #}
{%- endfor -%}    {# Looping over nodes #}
